STEP 13: Let's add some commands to the loop in the function. The commands must be indented 8 spaces!

  • Change the range of the loop to 6.
  • Drop Flip Right Left INSIDE the loop.
  • Drop Wait INSIDE the loop and change the wait time to 1 second.

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)